package main.hooks;

import java.util.Random;



public class RSArea {
	int minX;
	int maxX;
	int minY;
	int maxY;
	Random rand;
	public RSArea(int minX, int maxX, int minY, int maxY) {
		this.minX = minX;
		this.maxY = maxY;
		this.maxX = maxX;
		this.minY = minY;
	}
	
	public RSTile getRandomTile() {
		return new RSTile(random(minX, maxX), random(minY, maxY));
		}
	
	public int random(int min, int max) {
		return rand.nextInt(Math.abs(max - min)) + min;
	}
	
	public int getMaxX() {
		return maxX;
	}
	public int getMaxY() {
		return maxY;
	}
	public int getMinY() {
		return minY;
	}
	public int getMinX() {
		return minX;
	}

}
